<?php

namespace myshop\students\controller;

use longhu\base\AdminBaseController;
use myshop\common\dao\StudentsDao;
use myshop\common\middleware\AdminApiLogMiddleware;
use think\annotation\route\Group;
use think\annotation\route\Middleware;
use think\annotation\route\Resource;

#[Group('sys')]
#[Resource('/students')]
#[Middleware([AdminApiLogMiddleware::class])]
class Students extends AdminBaseController
{
    protected $service;
    public function __construct(StudentsDao $service)
    {
        $this->service = $service;
    }

    public function index()
    {
        $where = [

        ];
        $data = $this->service->pageLists($where);
        dump($data);exit;
    }
}